// let cp = require('child_process');
// console.log("new 文字");
// cp.exec('yarn init -y', { cwd: __dirname });

console.log(
  JSON.stringify(
    JSON.parse(
      '[{"filepath": "new.js", "status": "updated"}, {"filepath": "news.html", "status": "added"}, {"filepath": "tang.vue", "status": "deleted"}, {"filepath": "test.vue", "status": "updated"}]'
    )
      .map((item) => {
        if (
          item.status === "added" ||
          item.status === "updated" ||
          item.status === "renamed"
        ) {
          return (
            "/ea316568ab424d4c8307f85073879b2c/test-pretiier-format" +
            "/" +
            item.filepath
          );
        }
      })
      .filter((item) => item)
  )
);
// const aaa = [{ filepath: "new.js", status: "updated"}, {filepath: "news.html", status: "added"}, {filepath: "tang.vue", status: "deleted"}, {filepath: "test.vue", status: "updated"}]
